package net.vkits.api;

import io.swagger.annotations.*;
import net.vkits.common.dto.BaseDTO;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by ethan-liu on 2017/1/6.
 */
@Api(value = "feedback", description = "上传反馈信息API")
@RequestMapping("/api/v2")
public interface FeedbackApi {
    @ApiOperation(value = "add feedback", notes = "上传反馈信息", response = BaseDTO.class, tags={ "feedback", })
    @ApiResponses(value = {
            @ApiResponse(code = 200, message = "上传反馈信息成功", response = BaseDTO.class),
            @ApiResponse(code = 404, message = "上传反馈信息失败", response = BaseDTO.class) })
    @RequestMapping(value = "/feedback",
            produces = { "application/json" },
            method = RequestMethod.POST)
    ResponseEntity<BaseDTO> feedback(@ApiParam(value = "反馈信息", required = true) @RequestParam String content);

}
